<!DOCTYPE html> <title>Basic Visual Test</title>

<style>
  @import '/reset.css';
  html,
  body {
    height: 1500px;
  }

  #reference {
    position: absolute;
    top: 150px;
    left: 50px;
    width: 200px;
    height: 200px;
    background-color: red;
    box-shadow: inset 0 0 0 1px black;
  }

  #popper {
    width: 500px;
    height: 100px;
    background-color: rebeccapurple;
    box-shadow: inset 0 0 0 1px black;
  }
</style>

<div id="reference">Reference Box</div>
<div id="popper">Popper Box</div>

<script type="module">
  import { createPopper } from '../../dist/popper.js';
  const reference = document.querySelector('#reference');
  const popper = document.querySelector('#popper');

  window.instance = createPopper(reference, popper, {
    placement: 'top-end',
    modifiers: [
      {
        name: 'flip',
        options: {
          fallbackPlacements: [
            'top-start',
            'right-start',
            'right-end',
            'bottom-end',
            'bottom-start',
          ],
        },
      },
    ],
  });
</script>
